home *** CD-ROM | disk | FTP | other *** search
-
-
-
- <GCORE> User Commands <GCORE>
-
-
-
- _________________________________________________________________
-
- NNAAMMEE
- gcore - Generate a core file from a Sprite process.
-
- SSYYNNOOPPSSIISS
- ggccoorree [_o_p_t_i_o_n_s] _p_i_d _p_i_d ...
-
- OOPPTTIIOONNSS
- --oo _p_r_e_f_i_x Generate the output file names by prepending the
- string _p_r_e_f_i_x to each of the pids.
-
- --kk Kill the process after the core dump is produced.
-
- --ss _s_i_g_n_a_l Use signal number _s_i_g_n_a_l to pause running process.
-
- _________________________________________________________________
-
-
- DDEESSCCRRIIPPTTIIOONN
- GGccoorree generates a snapshot of the current execution state of
- a Sprite process. For historical reasons, these snapshot
- are referred to as core dumps or core files. Core dumps can
- be used by the ggddbb debugger to examine the process's state
- as if the debugger was attached to the process.
-
- GGccoorree takes as arguments one or more process ids and gen-
- erates core dumps for each process in the file core._p_i_d
- where _p_i_d is the specified process id. The --oo option allows
- a string other than "core" to be used to generate output
- file names. If the --kk option is specified, the processes
- specified will be sent a SIGKILL signal after the core dump
- is finished.
-
- GGccoorree reads the register state and memory image of a process
- by using the Sprite debugger interface (PPrroocc__DDeebbuugg.) If the
- process is not already in the DEBUG state (see the ppss com-
- mand), ggccoorree will send the process a SIGTRAP signal to force
- it into the DEBUG state. This operation will fail if the
- user does not have permission to send signals to the process
- or the process has blocked, ignored, or has a handler
- installed for the SIGTRAP signal. The --ss option can be used
- to inform ggccoorree to use a signal number other than 5
- (SIGTRAP). Other signals that may work are 4 (SIGILL), 8
- (SIGFPE) and 11 (SIGSEGV). GGccoorree restarts running process
- by sending them a SIGCONT after the dump is produced.
-
- WWAARRNNIINNGG
- The signals used by ggccoorree to stop running processes can
- interrupt system calls such as rreeaadd,, sseelleecctt, or sslleeeepp, caus-
- ing them to return an error status of EINTR. Some programs
- may interpret the EINTR as an error and exit.
-
-
-
-
-
- Sprite v.1.0 Printed: February 5, 1989 1
-
-
-
-
-
-
- <GCORE> User Commands <GCORE>
-
-
-
- KKEEYYWWOORRDDSS
- gdb, coredump
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Sprite v.1.0 Printed: February 5, 1989 2
-
-
-
-